﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using dotNetMagazin201108.PersistenceLayer;
using dotNetMagazin201108.BusinessLayer;

namespace dotNetMagazin201108
{
    public static class Factory
    {
        public static bool UseMockups = false;

        public static ContactRepository CreateContactRepository()
        {
            if (UseMockups) return ContactRepositoryImpl.GetInstance();
            return new SharePointContactRepository();
        }

        public static CompanyRepository CreateCompanyRepository()
        {
            if (UseMockups) return CompanyRepositoryImpl.GetInstance();
            return new SharePointCompanyRepository();
        }
    }
}
